package com.ydgk.service;

import com.ydgk.bean.*;
import com.ydgk.vo.AddressInfo;

import java.util.List;

public interface UserService {
    void insert(User user);

    Boolean checkUemailExist(String uemail);

    Boolean checkUnickExist(String unick);

    Boolean checkUphoneExist(String uphone);

    User findByUpassAndUemail(String uemail, String upass);

    User findByUpassAndUnick(String unick, String upass);

    User findByUpassAndUphone(String uphone, String upass);

    User findById(Integer uid);

    void updateById(User user);

    List<Province> getAllPro();

    List<City> getCityByPid(Integer pid);

    List<District> getDistrictByCid(Integer cid);

    List<Area> getAreaByDid(Integer did);

    void insertAddress(Address address);

    List<Address> getAdd(int uid);

    AddressInfo getAddressInfo(Address address);

    void deleteAddress(Integer adid);

    Address getAddress(Integer adid);

    void updateAddress(Address address);

    int getAddCount(Integer uid);

    void setAddDefault(Integer adid);
}
